﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using Maticsoft.Common;
using QunYing.Model;
namespace QunYing.BLL
{
    /// <summary>
    /// OrderInfo
    /// </summary>
    public partial class OrderInfo
    {
         /// <summary>
        /// 添加订单
        /// </summary>
        /// <param name="dt">商品</param>
        /// <returns></returns>
        public int AddOrder(string user, string opuser,string name, string address, string tel, string msg, DataTable dt)
         {
             return dal.AddOrder(user,opuser, name, address, tel, msg, dt);
         }
        /// <summary>
        /// 我的订单
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public DataTable GetOrderInfo(string user,bool b)
        {
            return dal.GetOrderInfo(user,b);
        }

        /// <summary>
        /// 经销商订单
        /// </summary>
        /// <param name="dealerID"></param>
        /// <returns></returns>
        public DataTable GetOrderList(string dealerID, string orderNo, DateTime? startDate, DateTime? endDate, string state, bool init)
        {
            return dal.GetOrderList(dealerID, orderNo, startDate, endDate, state, init);
        }


        /// <summary>
        /// 销售统计
        /// </summary>
        /// <param name="DealerID"></param>
        /// <returns></returns>
        public DataTable QueryTotalMarket(string DealerID, DateTime startDate, DateTime endDate)
        {
            return dal.QueryTotalMarket(DealerID, startDate, endDate);
        }
    }
}

